#include "Node.h"
#include "Grid.h"

using namespace std;

int main() {
	// Some initial testing
	Grid<Node<int>> g(4, 4);
	g.createWall(1,0);
	g.createWall(0,3);
	vector<Node<int>*>* path = g.astar(0, 0, 3, 3);

	cout << path << endl;

	// Print out the path
	if (path != nullptr)
		for (vector<Node<int>*>::reverse_iterator it = path->rbegin(); it != path->rend(); ++it)
			cout << *it << endl;

	//Pause to look at the output
	system("pause");
}